<include file="public@head"/>

<div class="list-page">
    <div class="wrap-box">
        <div class="list-container">
            <div class="list-left-nav f">
                <div class="title"><h2>{$parentCategory['name']}</h2></div>
                <ul>
                    <volist name="sonCateList" id="vo">
                        <li>
                        <div class="first">
                            <empty name="vo.son">
                                <a href="{:cmf_url('portal/list/index',array('id'=>$vo['id']))}">{$vo.name}</a>
                                <else />
                                {$vo.name}

                            </empty>
                            <span class="xian"> > </span>
                        </div>
                        <div class="second <if condition="$fatherCId eq $vo.id">show</if>">
                            <ul>
                                <volist name="vo.son" id="item">
                                    <li <if condition="$item['id'] eq $category['id']">class="active"</if> >
                                    <a href="{:cmf_url('portal/list/index',array('id'=>$item['id']))}">{$item.name}</a>
                                    </li>
                                </volist>
                            </ul>
                        </div>
                    </li>
                    </volist>

                </ul>
            </div>
            <div class="list-post r">


                <div class="current-position">
                    <span>您当前所在的位置：</span>
                    <span> <a href="__ROOT__">首页</a> >> </span>

                    <portal:breadcrumb cid="currentCid" self="true">
                        <span><a href="{:url('portal/List/index',['id'=>$vo['id']])}">{$vo.name}</a> >> </span>
                    </portal:breadcrumb>
                    <span>{$category.name}</span>
                </div>


                <div class="post-list">
                    <ul>

                        <php>
                            $where=[
                            'post.create_time'=>['egt',0]
                            ];
                        </php>
                        <portal:articles item="vo"  where="$where" order="post.create_time DESC" page="10"
                                         relation="categories"
                                         categoryIds="$categoryIds"
                                         returnVarName="articles_data">
                            <li>

                                <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id']))}">{$vo.post_title}</a>
                                <span class="date">{$vo.update_time|date="Y-m-d",###}</span>
                            </li>
                        </portal:articles>



                    </ul>

                    <div class="c"></div>
                </div>

                <div class="pagination">
                    <page/>
                </div>
            </div>


            <div class="c"></div>
        </div>
    </div>
</div>
<include file="public@footer"/>

<script>
    $(".list-left-nav .first").click(function(){
        $(this).next().toggle();
    })
</script>
</body>

</html>